package serializer

import "todo_list/model"

type Task struct {
	ID        uint
	Title     string
	Content   string
	View      uint64
	Status    int
	CreatedAt int64
	StartTime int64
	EndTime   int64
}

//BuildTask 序列化备忘录
func BuildTask(task model.Task) Task {
	return Task{
		ID:      task.ID,
		Title:   task.Title,
		Content: task.Content,
	}
}

func BuildTasks(tasks []model.Task) []Task {

}
